//
// Created by pedro on 18-10-22.
//

#include "pop_sort.h"

void pop_sort(int *data, int length) {
    for (int i = 0; i < length; ++i) {
        for (int j = i; j < length; ++j) {
            if (data[j] < data[i]) {
                swap(data, i, j);
            }
        }
    }
}